#include "PreCompile.h"
#include "ParserSettings.h"

namespace Xml
{
  void ParserSettings::initialize_context(_xmlParserCtxt *ctxt) const
  {
    //Turn on/off validation:
    ctxt->validate = (validate ? 1 : 0);

    //Whether or not we substitute entities:
    ctxt->replaceEntities = (substitute_entities ? 1 : 0);
  }
}
